package net.media.datafw.database;

import net.media.datafw.DataException;

public class DataBaseException extends DataException {
	private static final long serialVersionUID = 3116338135560651758L;

	public static final String PUBSUB_ERR_DB_CXN_CLOSED = "The Network Adapter could not establish the connection";
	public static final String PUBSUB_ERR_DB_IO_EXCEPTION = "Io exception";
	public static final String PUBSUB_ERR_DB_STMT_CLOSED = "Closed Statement";
	public static final String PUBSUB_ERR_DB_CXN_CLOSED_RETRYING = "Retrying...";
	public static final String PUBSUB_ERR_DB_EXECUTION = "Execution Error";
	public static final String PUBSUB_ERR_DB_CXN_RETRY = "Failed to open db connection. Retrying : ";

	public DataBaseException() {
		super();
	}

	public DataBaseException(int errorCode) {
		super(errorCode);
	}

	public DataBaseException(String message) {
		super(message);
	}

	public DataBaseException(Throwable throwable) {
		super(throwable);
	}

	public DataBaseException(int errorCode, Throwable throwable) {
		super(errorCode);
	}

	public DataBaseException(String message, Throwable throwable) {
		super(message, throwable);
	}

	public DataBaseException(int errorCode, String message, Throwable throwable) {
		super(errorCode, message, throwable);
	}

	public DataBaseException(int errorCode, String message) {
		super(errorCode, message);
	}
}
